package im.notify.server;


import org.junit.Test;

import com.alibaba.fastjson.JSON;

import guanqu.beans.SluiceControl;

public interface Notify {

	public static final String PING = "0";
	public static final String PONG = "1";

	/**
	 * 好友请求
	 */
	public static final String FRIEND_REQUEST = "2";

	/**
	 * 好友处理结果
	 */
	public static final String FRIEND_DEAL_AGREE = "3";

	/**
	 * 发送消息
	 */
	public static final String PLAIN_MESSAGE = "4";

	/**
	 * 群组消息
	 */
	public static final String GROUP_MESSAGE = "5";

	/**
	 * 被添加到群
	 */
	public static final String BEADDTOGROUP = "6";
	
	
	/**
	 * 被迫下线
	 */
	public static final String BEOFFLINE = "9";

	/**
	 * 群组消息
	 */
	public static class GroupMessage {
		// 群组id
		long groupId;

		public long getGroupId() {
			return groupId;
		}

		public void setGroupId(long groupId) {
			this.groupId = groupId;
		}

	}

	

	/**
	 * 上下线消息
	 */
	public static class Online  {
		public static final int ONLINE = 1;
		public static final int OFFLINE = 2;

		int a = 0;
		int linestatus;
		int userId;
		String account;

		
		
		public int getA() {
			return a;
		}

		public void setA(int a) {
			this.a = a;
		}

		public int getLinestatus() {
			return linestatus;
		}

		public void setLinestatus(int linestatus) {
			this.linestatus = linestatus;
		}

		public int getUserId() {
			return userId;
		}

		public void setUserId(int userId) {
			this.userId = userId;
		}

		public String getAccount() {
			return account;
		}

		public void setAccount(String account) {
			this.account = account;
		}

	}

	/**
	 * 控制命令通知
	 */
	public static class ControlGate {

		
		int a = 1;
		// 控制命令
		SluiceControl sc = new SluiceControl();

		
		public int getA() {
			return a;
		}

		public void setA(int a) {
			this.a = a;
		}

		public SluiceControl getSc() {
			return sc;
		}

		public void setSc(SluiceControl sc) {
			this.sc = sc;
		}
		

	}

	/**
	 * 被好友删除
	 */
	public static class BeRemoved
	{
		int a = 2;
		String account;
		public int getA() {
			return a;
		}
		public void setA(int a) {
			this.a = a;
		}
		public String getAccount() {
			return account;
		}
		public void setAccount(String account) {
			this.account = account;
		}
		
	}
	
	/**
	 * 好友处理拒绝
	 */
	public static class BeRufused
	{
		int a = 3;
		String account;
		public int getA() {
			return a;
		}
		public void setA(int a) {
			this.a = a;
		}
		public String getAccount() {
			return account;
		}
		public void setAccount(String account) {
			this.account = account;
		}
		
	}
	
	/**
	 * 好友请求同意
	 */
	public static class BeAgree
	{
		int a = 4;
		String account;
		public int getA() {
			return a;
		}
		public void setA(int a) {
			this.a = a;
		}
		public String getAccount() {
			return account;
		}
		public void setAccount(String account) {
			this.account = account;
		}
		
	}
	
	/**
	 * 被从群组删除
	 */
	public static class BeRemovedFromGroup
	{
		int a = 5;
		String groupId;
		public int getA() {
			return a;
		}
		public void setA(int a) {
			this.a = a;
		}
		public String getGroupId() {
			return groupId;
		}
		public void setGroupId(String groupId) {
			this.groupId = groupId;
		}
		
	}
	
	/**
	 * 获取经纬度服务通知
	 */
	public static class GetLocation
	{
		int a = 6;
		String account;// 想要获取位置的账号
		String gateId; // 闸门编号
		public int getA() {
			return a;
		}
		public void setA(int a) {
			this.a = a;
		}
		public String getAccount() {
			return account;
		}
		public void setAccount(String account) {
			this.account = account;
		}
		public String getGateId() {
			return gateId;
		}
		public void setGateId(String gateId) {
			this.gateId = gateId;
		}
		
		
	}
	
	/**
	 * 获取经纬度的结果
	 */
	public static class LocationResult
	{
		int a = 7;
		String account; // 获取经纬度的账号
		String gateId; // 获取闸门的
		String longtitude; // 经度
		String latitude; // 纬度
		public int getA() {
			return a;
		}
		public void setA(int a) {
			this.a = a;
		}
		public String getAccount() {
			return account;
		}
		public void setAccount(String account) {
			this.account = account;
		}
		public String getGateId() {
			return gateId;
		}
		public void setGateId(String gateId) {
			this.gateId = gateId;
		}
		public String getLongtitude() {
			return longtitude;
		}
		public void setLongtitude(String longtitude) {
			this.longtitude = longtitude;
		}
		public String getLatitude() {
			return latitude;
		}
		public void setLatitude(String latitude) {
			this.latitude = latitude;
		}
		
	}
}
